# -*- coding: utf-8 -*-

from src.plugins import register_plugin

@register_plugin("defense")
def defense_adjust(risk_score, defense_exp):
    """defense_exp: 企业网络安全投入占营收比例"""
    return max(0, risk_score - 0.8 * defense_exp)

